package subject.homework.zoosystrem.sons1;
import subject.homework.zoosystrem.father.*;

public class ParkAdminCollection extends UserCollections {

    //园区名称
    private ParkInfo parkBelongsTo;

    public void setAnimalOfPark(ParkInfo animalOfPark) {
        this.parkBelongsTo = animalOfPark;
    }
    public ParkInfo getParkBelongsTo() {return parkBelongsTo;} //返回所处园区

    public void setParkBelongsTo(ParkInfo parkBelongsTo) {
        this.parkBelongsTo = parkBelongsTo;
    } //设置所属园区


    public String displayAllAdmin() {
        System.out.println(this.parkBelongsTo.getParkName() + "\n");
        for(UserAdmin currentUser:AdminList){
            System.out.println(currentUser.getUserName()+",");
            System.out.println(currentUser.getAdminTypeOfWork()+"\n");
        }
        return null;
    }

}
